home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 120
/
Vol 120.iso
/
games
/
the_samu.swf
/
scripts
/
frame_2
/
DoAction.as
Wrap
Text File
|
2010-11-09
|
391b
|
21 lines
totalsize = getBytesTotal();
loadsize = getBytesLoaded();
if(totalesize != 0)
{
per = Math.floor(loadsize / totalsize * 100);
}
else
{
per = 0;
}
loading.mc_bar.mc._x = loading.mc_bar.mc._width * (-1 + loadsize / totalsize);
loading.txtPer = String(per) + "%";
if(loadsize >= 1 && totalsize >= 1 && loadsize == totalsize)
{
play();
}
else
{
gotoAndPlay(1);
}